﻿IF OBJECT_ID('fIsManySegmentsToManyDocuments') IS NOT NULL 
BEGIN 
    DROP FUNCTION fIsManySegmentsToManyDocuments
    IF OBJECT_ID('fIsManySegmentsToManyDocuments') IS NOT NULL
        PRINT '<<< FAILED DROPPING FUNCTION fIsManySegmentsToManyDocuments >>>'
    ELSE 
        PRINT '<<< DROPPED FUNCTION fIsManySegmentsToManyDocuments >>>'
END
GO
CREATE FUNCTION dbo.fIsManySegmentsToManyDocuments
(
)
RETURNS bit
AS
BEGIN
    DECLARE
        @bit bit
    ,   @fragmentValue varchar(255)


    SET @bit = 0
    SELECT @fragmentValue = dbo.fGetFragment(DEFAULT,DEFAULT,'GenericWebMetaDataIsManySegmentsToManyDocuments')

    IF @fragmentValue = 'yes'
    BEGIN
        SET @bit = 1
    END


RETURN @bit
END
GO
GRANT EXECUTE ON fIsManySegmentsToManyDocuments TO public
GO
IF OBJECT_ID('fIsManySegmentsToManyDocuments') IS NOT NULL 
    PRINT '<<< CREATED FUNCTION fIsManySegmentsToManyDocuments >>>' 
ELSE 
    PRINT '<<< FAILED CREATING FUNCTION fIsManySegmentsToManyDocuments >>>' 
GO